<template>
	<div class="pointer-events-none max-w-[720px]" :style="componentStyle">
		<img src="@/app/assets/images/default_headimg_square.jpg" class="w-full h-full" />
	</div>
</template>

<script lang="ts" setup>
import { ref,computed } from 'vue'
import { img } from '@/utils/common'

const prop = defineProps({
    value: {
        type: Object,
        default: {}
    }
})

const data = computed(()=> {
    return prop.value;
})

const componentStyle = computed(()=> {
    var style = '';
    style += `width: ${prop.value.width}px;`;
    if(prop.value.shape == 'circle'){
        style += `border-radius: 50%; overflow: hidden;`;
    }
    return style;
})

defineExpose({})

</script>

<style lang="scss" scoped></style>
